<template>
	<view>
		<pageheader :setting="settingdata"></pageheader>
		<view class="uParse">
			<block v-for="(item,index) in agreement" :key="index">
				<block v-if="type==item.type">
					<uParse :content="item.content"></uParse>
				</block>
			</block>
		</view>
	</view>
</template>

<script>
	var _this;
	export default {
		data() {
			return {
				settingdata: {
					name: '社区发布协议',
					bgColor: '#fff',
					titleColor: '#000000',
					showNav: true,
					showTypes: 0,
					position: "xieyi"
				},
				type: 2,
				agreement: [],
			}
		},
		onLoad(e) {
			_this = this

			_this.$api.get("setup", {}).then(data => {
				_this.agreement = data.agreement
			})
		},
		onShow() {},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>

</style>
